package com.songtech.device.dao;

import com.songtech.device.bean.Device;

import java.util.List;
import java.util.Map;

public interface DeviceMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);

    int deviceOnlineCount(Map<String,String> map);

    int deviceOfflineCount(Map<String,String> map);

    List<Device> deviceOnlineByDay (Map<String,Object> map);
}